import QtQuick 2.0
import QtQuick.Controls 1.4

import "../../../commonUI"
import "../../../basic"

// 播放
Item {
    anchors.left: parent.left
    anchors.right: parent.right
    height: 430

    Label {
        id: playLabel
        text: qsTr("播放")
        font.pixelSize: 22
        font.bold: true
        font.family: BasicConfig.heiTiFont
        anchors.left: parent.left
        color: "white"

    }

    Column {
        id: musicSeting
        anchors.left: playLabel.right
        anchors.leftMargin: 150
        spacing: 20
        CustomCheckBox {
            width: 100
            height: 30
            textColor: "white"
            anchors.left: parent.left
            text: qsTr("程序启动时自动播放")
        }
        CustomCheckBox {
            width: 100
            height: 30
            textColor: "white"
            anchors.left: parent.left
            text: qsTr("首次进入博客页面时自动播放(不播放歌时)")
        }
        CustomCheckBox {
            width: 100
            height: 30
            textColor: "white"
            anchors.left: parent.left
            isSelected: true
            text: qsTr("程序启动时记住上一次播放进度")
        }
        CustomCheckBox {
            width: 100
            height: 30
            textColor: "white"
            anchors.left: parent.left
            isSelected: true
            text: qsTr("开启音乐淡入淡出")
        }
    }

    Column {
        id: playDevice
        anchors.left: musicSeting.left
        anchors.top: musicSeting.bottom
        anchors.topMargin: 30
        spacing: 10
        Label {
            text: qsTr("输出设备")
            font.pixelSize: 18
            font.bold: true
            font.family: BasicConfig.heiTiFont
            anchors.left: parent.left
            color: "white"
        }
        CustomComboBox {
            id: fontSelectorCbx
            width: 250
            height: 30
            anchors.topMargin: 20
            model: ["主声音驱动程序", "扬声器", "默认输出设备"]
        }
    }

    Column {
        id: playList
        anchors.left: playDevice.left
        anchors.top: playDevice.bottom
        anchors.topMargin: 30
        spacing: 20
        Label {
            text: qsTr("播放列表")
            font.pixelSize: 18
            font.bold: true
            font.family: BasicConfig.heiTiFont
            anchors.left: parent.left
            color: "white"
        }
        // 定义RadioButton组
        ExclusiveGroup {
            id: playExclusiveGroup
        }
        CustomRadioButton {
            isSelect: true
            contentText: qsTr("双击播放单曲时，用当前单曲所在的歌曲列表替换播放列表")
            exclusiveGroup: playExclusiveGroup
        }
        CustomRadioButton {
            contentText: qsTr("双击播放单曲时，仅把当前歌曲添加到播放列表")
            exclusiveGroup: playExclusiveGroup
        }
    }

    CustomPliteLine { }
}
